package day3;

/**
 * @author oldliu
 * @since 1.0
 */
public class Cat {
    String name;//名字
    int age;//年龄
    String type;
    String color;//颜色

    public void cry(){
        System.out.println(name+"在叫唤：喵喵喵");
    }
    public void show(){
        System.out.println("这只猫的信息如下：");
        System.out.println("名叫"+name);
        System.out.println("今年"+age+"岁了");
        System.out.println("毛色是"+color+",品种是："+type);
        cry();//!!!!!!!!!!!!!!!!!!!
    }
}
